<template>
  <div>
    <slot name="default"></slot>
    <slot name="main"></slot>
    <slot name="footer" testProps="作用域插槽"></slot>
  </div>
</template>

<script>
export default {
  name: "SlotDemo",
  mounted() {
    console.log(this.$slots);
  }
};
</script>

<style scoped></style>
